public class 重载 {
    public static void main(String[] args) {
        short a = 100;
        byte b = 100;
        int c = 100;
        long d = 100;
        compare(a, b);
        compare(a, c);
        compare(a, d);
    }
    public static void compare(short a, byte b){
        System.out.print("Short 参数1：" + a + " Byte 参数2：" + b);
        System.out.println(a == b);
    }
    public static void compare(byte a, byte b){
        System.out.print("Byte 参数1：" + a + " Byte 参数2：" + b);
        System.out.println(a == b);
    }
    public static void compare(int a, int b){
        System.out.print("Int 参数1：" + a + " Int 参数2：" + b);
        System.out.println(a == b);
    }
    public static void compare(long a, long b){
        System.out.print("Long 参数1：" + a + " Long 参数2：" + b);
        System.out.println(a == b);
    }
}
